/*
系统设置

*/
import httpRequest from '@/utils/httpRequest'
// 获取磁卡收费标准
export function getCardFee (data) {
  return httpRequest({
    url: '/truck/cardFee/cardFeeSetup',
    method: 'get',
    params: data
  })
}
// 获取磁卡收费标准列表
export function getCardFeeList (data) {
  return httpRequest({
    url: '/truck/cardFee/list',
    method: 'get',
    params: data
  })
}
// 获取自动扣分规则列表
export function getDeductRule (data) {
  return httpRequest({
    url: '/truck/creditDeductRule/listPage',
    method: 'get',
    params: data
  })
}

// 设置信用分下限
export function edit (data) {
  return httpRequest({
    url: '/sys/var/updVar',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 编辑自动扣分规则
export function editCreditRule (data) {
  return httpRequest({
    url: '/truck/creditDeductRule/save',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
